import request from '@/utils/request.js'

// 获取影视列表
export const getFilmList = (page, pageSize, keyword) => {
  return request.get('/film/page', {
    params: {
      page,
      pageSize,
      keyword
    }
  })
}

// 新增影视
export const insertFilm = (data) => {
  return request.post('/film/insert', data)
}

// 根据id获取书籍详情
export const getFilmById = (id) => {
  return request.get(`/film/getDetailById/${id}`)
}

// 更新影视
export const updateFilm = (data) => {
  return request.put('/film/update', data)
}
